package db;

import tool.FileUtils;
import function.Mp3File;

public class Mp3DBRecord {

	public static final String GOLD_RATING = "Gold";
	public static final String AVERAGE_RATING = "Basic";
	
	private String title;
	private String artist;
	private String folder;
	private String rating;
	
	public Mp3DBRecord(String aTitle) {
		super();
		title = aTitle;
		rating = AVERAGE_RATING;
	}
	
	public Mp3DBRecord(String aTitle, String anArtist, String aFolder) {
		super();
		title = aTitle;
		artist = anArtist;
		folder = aFolder;
		rating = AVERAGE_RATING;
	}

	public Mp3DBRecord(String aTitle, String anArtist, String aFolder, String aRating) {
		super();
		title = aTitle;
		artist = anArtist;
		folder = aFolder;
		rating = aRating;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public String getFolder() {
		return folder;
	}

	public void setFolder(String folder) {
		this.folder = folder;
	}
	
	public String getRating() {
		return rating;
	}

	public void setRating(String rating) {
		this.rating = rating;
	}

	public Mp3File getMp3File() {	
		return new Mp3File(FileUtils.SD_CARD + '/' + folder,
				title + ".mp3", rating);
	}
}
